package com.erp.erp_servers.ProcessCustomer2.imp;

import com.erp.erp_dao.ProcessCustomer2.IProcessCustomer2DAO;
import com.erp.erp_entitys.ProcessCustomer2.ProcessCustomer2Entity;
import com.erp.erp_entitys.ProcessCustomer2.ProcessCustomer2Example;
import com.erp.erp_servers.ProcessCustomer2.IProcessCustomer2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpProcessCustomer2Service implements IProcessCustomer2Service {
    @Autowired
    IProcessCustomer2DAO processCustomerDAO;

    @Override
    public int deleteByExample(ProcessCustomer2Example example) {
        return processCustomerDAO.deleteByExample(example);
    }

    @Override
    public int insert(ProcessCustomer2Entity record) {
        return processCustomerDAO.insert(record);
    }

    @Override
    public List<ProcessCustomer2Entity> selectByExample(ProcessCustomer2Example example) {
        return processCustomerDAO.selectByExample(example);
    }
}
